package matlap.client.services.registration;

import java.util.List;

import matlap.shared.Student;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface RegServiceAsync {

	void insertInPeople(int role, String last_name, String first_name,
			String address, AsyncCallback<Void> callback);

	void insertIntoRegistered(Student student, AsyncCallback<String> callback);

	void insertPeople(int role, Student student, AsyncCallback<String> callback);

	void insertStudents(String username, String school, int clas,
			AsyncCallback<Void> callback);

	void insertStudentsPeople(String last_name, String first_name,
			String address, String school, int clas,
			AsyncCallback<Void> callback);

	void selectSchoolID(String school, AsyncCallback<Integer> callback);

	void updatePassword(String username, String p, AsyncCallback<Void> callback);

	void updateContact(String username, String email, String phone,
			String address, AsyncCallback<Void> callback);

	void updatePeople(String username, String last_name, String first_name,
			String address, AsyncCallback<Void> callback);

	void getRegNames(AsyncCallback<List<String>> callback);

}
